package com.sailfish.springbootdemo.pojo.db1;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sailfish.springbootdemo.pojo.db4.User;

import java.util.Date;

public class AuditRecord {

    private Integer auditRecordId;
    private Integer relatedType;
    private Integer relatedId;
    private Integer auditStatus;
    private Integer auditUserId;
    private Integer submitUserId;
    private String changeJson;
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitterTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer createUserId;

    private User auditUser;
    private User submitUser;
    private User createUser;

    public AuditRecord() {
    }

    public AuditRecord(Integer relatedType, Integer relatedId, Integer auditStatus, Integer createUserId, String changeJson, String remark, Date submitterTime, Date auditTime, Date createTime) {
        this.relatedType = relatedType;
        this.relatedId = relatedId;
        this.auditStatus = auditStatus;
        this.createUserId = createUserId;
        this.changeJson = changeJson;
        this.remark = remark;
        this.submitterTime = submitterTime;
        this.auditTime = auditTime;
        this.createTime = createTime;
    }

    public Integer getAuditRecordId() {
        return auditRecordId;
    }

    public void setAuditRecordId(Integer auditRecordId) {
        this.auditRecordId = auditRecordId;
    }

    public Integer getRelatedType() {
        return relatedType;
    }

    public void setRelatedType(Integer relatedType) {
        this.relatedType = relatedType;
    }

    public Integer getRelatedId() {
        return relatedId;
    }

    public void setRelatedId(Integer relatedId) {
        this.relatedId = relatedId;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserId(Integer auditUserId) {
        this.auditUserId = auditUserId;
    }

    public Integer getSubmitUserId() {
        return submitUserId;
    }

    public void setSubmitUserId(Integer submitterUserId) {
        this.submitUserId = submitUserId;
    }

    public String getChangeJson() {
        return changeJson;
    }

    public void setChangeJson(String changeJson) {
        this.changeJson = changeJson;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getSubmitterTime() {
        return submitterTime;
    }

    public void setSubmitterTime(Date submitterTime) {
        this.submitterTime = submitterTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User getAuditUser() {
        return auditUser;
    }

    public void setAuditUser(User auditUser) {
        this.auditUser = auditUser;
    }

    public User getSubmitUser() {
        return submitUser;
    }

    public void setSubmitUser(User submitUser) {
        this.submitUser = submitUser;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public User getCreateUser() {
        return createUser;
    }

    public void setCreateUser(User createUser) {
        this.createUser = createUser;
    }
}
